#ifndef POINT_H
#define POINT_H

#include "point2d.h"

class Point : public Point2d
{
private:
    int altitude;
public:
    explicit Point(double latitude = 0.0, double longitude = 0.0, int altitude = 0);
    explicit Point(const Point2d & p2d);
    int getAltitude() const;
    void setAltitude(int altitude);
    int x() const;
    int y() const;
    int z() const;

    Point &operator+=(const Point &p);
    Point &operator-=(const Point &p);

    friend inline bool operator==(const Point &, const Point &);
    friend inline bool operator!=(const Point &, const Point &);
    friend inline Point operator+(const Point &, const Point &);
    friend inline Point operator-(const Point &, const Point &);
    friend inline Point operator-(const Point &);
};

#endif // POINT_H
